-- GENERATED SPELL FOR [Shadowfang Wolfguard] --


function spell0_3854(pUnit, Event) --@Dark Restore,Heal--
pUnit:FullCastSpellOnTarget(7106,pUnit)
pUnit:RegisterEvent('Sorts_3854', 2000, 1)
end

function spell1_3854(pUnit, Event) --@Summon Wolfguard Worg,Self--
pUnit:FullCastSpellOnTarget(7107,pUnit)
pUnit:RegisterEvent('Sorts_3854', 652, 1)
end

function Sorts_3854(pUnit, Event)
local choix_sorts_3854 = math.random(0, 1)
if choix_sorts_3854 == 0 then
pUnit:RegisterEvent('spell0_3854', 1, 1)
end
if choix_sorts_3854 == 1 then
pUnit:RegisterEvent('spell1_3854', 1, 1)
end
end

function mob3854_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3854', math.random(1500, 3000), 1)
end

function mob3854_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3854_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3854_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3854, 1, 'mob3854_Action')
RegisterUnitEvent(3854, 2, 'mob3854_Leave')
RegisterUnitEvent(3854, 3, 'mob3854_Kill')
RegisterUnitEvent(3854, 4, 'mob3854_Die')
